package chapter8;

import chapter4.Dish;
import chapter6.CaloricLevel;
import org.junit.Test;

import java.util.*;

import static java.util.stream.Collectors.*;

public class Test8 {
    @Test
    public void test(){
        Validator numericValidator =
                new Validator((String s) -> s.matches("[a-z]+"));
        boolean b1 = numericValidator.validate("aaaa");
        Validator lowerCaseValidator =
                new Validator((String s) -> s.matches("\\d+"));
        boolean b2 = lowerCaseValidator.validate("bbbb");

        System.out.println(b1+""+b2);
        System.out.println(5%2);
    }
}
